x86: TSC handling cleanups
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 11 May 2010 07:34:58 +0000 (08:34 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 11 May 2010 07:34:58 +0000 (08:34 +0100)
commite0d92765715d294603d1d2939243f330f6b7d128
tree8037cc0a9153e15a5c7c08fd82bad29edc268616
parentdc21ec2b12dc52137d01e89876e4d190ab3f9d37
x86: TSC handling cleanups

"I am removing the tsc_scaled variable that is never actually used
because when tsc needs to be scaled vtsc is 1.  I am also making this
more explicit in tsc_set_info.  I am also removing hvm_domain.gtsc_khz
that is a duplicate of d->arch.tsc_khz.  I am using scale_delta(delta,
&d->arch.ns_to_vtsc) to scale the tsc value before returning it to the
guest like in the pv case.  I added a feature flag to specify that the
pvclock algorithm is safe to be used in an HVM guest so that the guest
can now use it without hanging."

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/save.c
xen/arch/x86/hvm/vpt.c
xen/arch/x86/time.c
xen/common/kernel.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/time.h
xen/include/public/features.h